package Operation;

import Book.BookList;

public class ExitOperation implements IOperation{
    @Override
    public void work(BookList bookList) {
        System.out.println("退出系统");
        int CurrentSide = bookList.getUseSide();
        for (int i = 0; i < CurrentSide; i++) {
           bookList.setBooks(i,null);
        }
        bookList.setUseSide(0);
        System.exit(0);
    }
}
